package JUnitTest;

import static org.junit.Assert.*;

import org.junit.Test;

import Model.Wall.Post;
import Model.Wall.Wall;
import DBAccess.DBAccess;

public class WallTest {
	DBAccess access = new DBAccess();
	@Test
	public void test_WallTest() {
		assertTrue(Wall.DELETED == 1);
		assertTrue(Wall.NOTDELETED == 0);
	}
	
	@Test
	public void test_getNumMessagesTest() {
		Wall wall = new Wall();
		assertTrue(wall.getNumMessages(5)>=0);
	}
	
	@Test
	public void deletePost(){
		Wall wall = new Wall();
		wall.deletePost(1);
		assertNull(Post.getMessageFromPostID(1));
	}
}
